package com.example.module_home.DB;

import android.support.annotation.NonNull;

import com.example.module_home.Entity.SeenCodeInfo;
import com.example.module_home.Public.Constant;
import com.example.module_home.Public.ITHouseTables;
import com.example.module_home.Public.ITHouseTables;
import com.j256.ormlite.field.DataType;
import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

/**
 * Created by 陈煜 on 2018/5/30.
 */
@DatabaseTable(tableName = ITHouseTables.TABLE_SEENCODE)
public class SeenCodeTable {
    @DatabaseField(id = true,columnName = ITHouseTables.COLUMN_KINDID,canBeNull = false)
    private int kindId;
    @DatabaseField(columnName = ITHouseTables.COLUMN_SEENTIME,canBeNull = false)
    private String seenTime;
    @DatabaseField(columnName = ITHouseTables.COLUMN_TITLE,canBeNull = false)
    private String title;
    @DatabaseField(columnName = ITHouseTables.COLUMN_KIND,canBeNull = false)
    private String kind;
    @DatabaseField(columnName = ITHouseTables.COLUMN_AUTHOR,canBeNull = false)
    private String author;


    public SeenCodeTable(){}

    public SeenCodeTable(int kindId, String seenTime, String title, String kind, String author) {
        this.kindId = kindId;
        this.seenTime = seenTime;
        this.title = title;
        this.kind = kind;
        this.author = author;
    }

    public int getKindId() {
        return kindId;
    }

    public void setKindId(int kindId) {
        this.kindId = kindId;
    }

    public String getSeenTime() {
        return seenTime;
    }

    public void setSeenTime(String seenTime) {
        this.seenTime = seenTime;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getKind() {
        return kind;
    }

    public void setKind(String kind) {
        this.kind = kind;
    }
    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    @Override
    public String toString() {
        return "SeenCodeTable{" +
                "kindId=" + kindId +
                ", seenTime=" + seenTime +
                ", title='" + title + '\'' +
                ", kind='" + kind + '\'' +
                ", author='" + author + '\'' +
                '}';
    }
}
